<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Session数据取出</title>
</head>
<body>
<!-- 
Session 在一次会话范围中保存数据
 -->
<%
	//取出属性值
	String name = (String)session.getAttribute("name");
	int age = (Integer)session.getAttribute("age");
%>
<font size="3" color="blue" face="楷体">姓名：<%=name %></font><br>
<font size="3" color="blue" face="楷体">年龄：<%=age %></font>
</body>
</html>